package com.ys.erp.entity.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ys.erp.entity.data.bean.GoodsSpecs;
import com.ys.erp.entity.mapper.GoodsSpecsMapper;
import com.ys.erp.entity.service.IGoodsSpecsService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author lwj
 * @date 2023/4/16
 */
    
@Service
public class IGoodsSpecsServiceImpl extends ServiceImpl<GoodsSpecsMapper, GoodsSpecs> implements IGoodsSpecsService {

    @Override
    public List<GoodsSpecs> listByGoodsId(Long id) {
        QueryWrapper<GoodsSpecs> specsQw = new QueryWrapper<>();
        specsQw.lambda().eq(GoodsSpecs::getGoodsId, id);
        return list(specsQw);
    }

}
